/**
 * 加载界面
 */
var DownLoadingDialog = Dialog.extend({
    _ccsFileName: res.DownLoadingDialog_json,
    _content1: null,
    _content2: null,

    initDialog: function (content1, content2) {
        this.setContent(content1, content2);
    },
    /**
     * 设置文本
     * @public
     * @param content1
     * @param content2
     */
    setContent: function (content1, content2) {
        this._content1 = content1;
        this._content2 = content2;
        if (this._nodeList['content1'] && this._nodeList['content1'].isValid() && !isNullString(this._content1)) {
            this._nodeList['content1'].setString(this._content1);
            //如果content2为空   content1局中 
            if(this._nodeList['content2'] && this._nodeList['content2'].isValid()&&isNullString(this._content2)){
                this._nodeList['content1'].setPositionY(this.getContentSize().height/2);
                this._nodeList['content2'].setString("");
            }
        }
        if (this._nodeList['content2'] && this._nodeList['content2'].isValid() && !isNullString(this._content2)) {
            this._nodeList['content2'].setString(this._content2);
        }

    }
});